#include "stdafx.h"
#include "Personal.h"


void CPersonal::setName(CString sName)
{
	m_sPersonalName = sName;
}
CString CPersonal::getName()
{
	return m_sPersonalName;
}

void CPersonal::setDate(CString sDateBorn)
{
	m_sDateBorn = sDateBorn;
}
CString CPersonal::getDate()
{
	return m_sDateBorn;
}

void CPersonal::setAdress(CString sAdress)
{
	m_sAdress = sAdress;
}
CString CPersonal::getAdress()
{
	return m_sAdress;
}

void CPersonal::setPhoneNumber(CString sPhone)
{
	m_sPhoneNumber = sPhone;
}
CString CPersonal::getPhoneNumber()
{
	return m_sPhoneNumber;
}

void CPersonal::setEmail(CString sEmail)
{
	m_sEmail = sEmail;
}
CString CPersonal::getEmail()
{
	return m_sEmail ;
}
void CPersonal::setSex(int nSex)
{
	m_nSex = nSex;
}
int CPersonal::getSex()
{
	return m_nSex;
}
int CPersonal::getAge()
{
 return 0;
}

CPersonal* CPersonal::clone()
{
	CPersonal * pPersonal = new CPersonal();
	if (pPersonal)
	{
		pPersonal->setName(this->m_sPersonalName);
		pPersonal->setDate(this->m_sDateBorn);
		pPersonal->setAdress(this->m_sAdress);
		pPersonal->setPhoneNumber(this->m_sPhoneNumber);
		pPersonal->setEmail(this->m_sEmail);
		pPersonal->setSex(this->m_nSex);
	}
	return pPersonal;

}
